ifeq ($(KERNELRELEASE),)
	KERNELDIR ?= /home/jun/arm/linux-3.12.60 # ../linux-3.12
	PWD := $(shell pwd)
modules:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
modules_install:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
else
	obj-m := ov9650.o
	ov9650-objs := s3c2440_ov9650.o s3c2440_camif.o sccb.o
endif

.PHONY: clean
clean:
	@rm -rf *.o *~ *.mod.c *.order *.symvers .*.o.cmd .*.ko.cmd
